package com.tjzx.entity;

/**
 * EipNoticeInfotypeId entity. @author MyEclipse Persistence Tools
 */

public class EipNoticeInfotypeId implements java.io.Serializable {

	// Fields

	private Integer itid;
	private String name;
	private Integer pid;
	private String remark;
	private Integer isdel;

	// Constructors

	/** default constructor */
	public EipNoticeInfotypeId() {
	}

	/** minimal constructor */
	public EipNoticeInfotypeId(Integer itid) {
		this.itid = itid;
	}

	/** full constructor */
	public EipNoticeInfotypeId(Integer itid, String name, Integer pid,
			String remark, Integer isdel) {
		this.itid = itid;
		this.name = name;
		this.pid = pid;
		this.remark = remark;
		this.isdel = isdel;
	}

	// Property accessors

	public Integer getItid() {
		return this.itid;
	}

	public void setItid(Integer itid) {
		this.itid = itid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getIsdel() {
		return this.isdel;
	}

	public void setIsdel(Integer isdel) {
		this.isdel = isdel;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipNoticeInfotypeId))
			return false;
		EipNoticeInfotypeId castOther = (EipNoticeInfotypeId) other;

		return ((this.getItid() == castOther.getItid()) || (this.getItid() != null
				&& castOther.getItid() != null && this.getItid().equals(
				castOther.getItid())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getPid() == castOther.getPid()) || (this.getPid() != null
						&& castOther.getPid() != null && this.getPid().equals(
						castOther.getPid())))
				&& ((this.getRemark() == castOther.getRemark()) || (this
						.getRemark() != null
						&& castOther.getRemark() != null && this.getRemark()
						.equals(castOther.getRemark())))
				&& ((this.getIsdel() == castOther.getIsdel()) || (this
						.getIsdel() != null
						&& castOther.getIsdel() != null && this.getIsdel()
						.equals(castOther.getIsdel())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getItid() == null ? 0 : this.getItid().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getPid() == null ? 0 : this.getPid().hashCode());
		result = 37 * result
				+ (getRemark() == null ? 0 : this.getRemark().hashCode());
		result = 37 * result
				+ (getIsdel() == null ? 0 : this.getIsdel().hashCode());
		return result;
	}

}